package com.lanou.order.mapper;


import com.lanou.entity.entity.OrderEntity;
import com.lanou.entity.entity.OrderItemEntity;
import com.lanou.entity.entity.OrderShippingEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface OrderMapper {

    List<OrderEntity> query(@Param("index") int index, @Param("submitDate") int submitDate, @Param("orderState") String orderState, @Param("keyWord") String keyWord);

    List<OrderEntity> queryAll(int page);

    int delete(int orderId);

    void insert(int orderId);

    Integer countOne();
    Integer countFour();

    List<OrderEntity> queryBy(@Param("index") int index, @Param("submitDate") int submitDate, @Param("orderState") String orderState, @Param("keyWord") String keyWord);

    List<OrderItemEntity> queryItem(@Param("keyWord") String keyWord);

    int queryCount();

    int update(@Param("orderId") String orderId, @Param("sta") String sta);

    int insertOrder(OrderEntity orderEntity);
    int insertOrderItem(List<OrderItemEntity> orderItemList);
    int insertOrderShipping(OrderShippingEntity orderShippingEntity);
}

